//
//  SYDownloadFile.h
//  SanYiTeaching
//
//  Created by 郑浩然 on 2019/5/27.
//  Copyright © 2019年 SanYi. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface SYDownloadFile : NSObject
/**
 *  @author Jakey
 *
 *  @brief  下载文件
 *
 *  @param requestURL 请求地址
 *  @param success    下载成功回调
 *  @param failure    下载失败回调
 *  @param progress   实时下载进度回调
 */
+ (void)downloadFileWithUrl:(NSString*)requestURL
                    success:(void (^)(id responseObject))success
                    failure:(void (^)(NSError *error))failure
                   progress:(void (^)(float progress ,long long bytesRead))progress savePath:(NSString *)filePath;
@end
